Integrand size = 33, antiderivative size = 145 \[ \int \frac {A+B \cos (c+d x)}{\cos ^{\frac {7}{2}}(c+d x) \sqrt {b \cos (c+d x)}} \, dx=\frac {B \text {arctanh}(\sin (c+d x)) \sqrt {\cos (c+d x)}}{2 d \sqrt {b \cos (c+d x)}}+\frac {B \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {b \cos (c+d x)}}+\frac {A \sin (c+d x)}{d \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)}}+\frac {A \sin ^3(c+d x)}{3 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {b \cos (c+d x)}} \]
[Out]
Time = 0.08 (sec) , antiderivative size = 145, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.152, Rules used = {18, 2827, 3852, 3853, 3855} \[ \int \frac {A+B \cos (c+d x)}{\cos ^{\frac {7}{2}}(c+d x) \sqrt {b \cos (c+d x)}} \, dx=\frac {A \sin ^3(c+d x)}{3 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {b \cos (c+d x)}}+\frac {A \sin (c+d x)}{d \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)}}+\frac {B \sqrt {\cos (c+d x)} \text {arctanh}(\sin (c+d x))}{2 d \sqrt {b \cos (c+d x)}}+\frac {B \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {b \cos (c+d x)}} \]
[In]
[Out]
Rule 18
Rule 2827
Rule 3852
Rule 3853
Rule 3855
Rubi steps \begin{align*} \text {integral}& = \frac {\sqrt {\cos (c+d x)} \int (A+B \cos (c+d x)) \sec ^4(c+d x) \, dx}{\sqrt {b \cos (c+d x)}} \\ & = \frac {\left (A \sqrt {\cos (c+d x)}\right ) \int \sec ^4(c+d x) \, dx}{\sqrt {b \cos (c+d x)}}+\frac {\left (B \sqrt {\cos (c+d x)}\right ) \int \sec ^3(c+d x) \, dx}{\sqrt {b \cos (c+d x)}} \\ & = \frac {B \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {b \cos (c+d x)}}+\frac {\left (B \sqrt {\cos (c+d x)}\right ) \int \sec (c+d x) \, dx}{2 \sqrt {b \cos (c+d x)}}-\frac {\left (A \sqrt {\cos (c+d x)}\right ) \text {Subst}\left (\int \left (1+x^2\right ) \, dx,x,-\tan (c+d x)\right )}{d \sqrt {b \cos (c+d x)}} \\ & = \frac {B \text {arctanh}(\sin (c+d x)) \sqrt {\cos (c+d x)}}{2 d \sqrt {b \cos (c+d x)}}+\frac {B \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {b \cos (c+d x)}}+\frac {A \sin (c+d x)}{d \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)}}+\frac {A \sin ^3(c+d x)}{3 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {b \cos (c+d x)}} \\ \end{align*}
Time = 0.11 (sec) , antiderivative size = 76, normalized size of antiderivative = 0.52 \[ \int \frac {A+B \cos (c+d x)}{\cos ^{\frac {7}{2}}(c+d x) \sqrt {b \cos (c+d x)}} \, dx=\frac {3 B \text {arctanh}(\sin (c+d x)) \cos ^2(c+d x)+3 B \sin (c+d x)+2 A (2+\cos (2 (c+d x))) \tan (c+d x)}{6 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {b \cos (c+d x)}} \]
[In]
[Out]
Time = 5.04 (sec) , antiderivative size = 122, normalized size of antiderivative = 0.84
method | result | size |
default | \(\frac {-3 B \left (\cos ^{3}\left (d x +c \right )\right ) \ln \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )-1\right )+3 B \left (\cos ^{3}\left (d x +c \right )\right ) \ln \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )+1\right )+4 A \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right )+3 B \sin \left (d x +c \right ) \cos \left (d x +c \right )+2 A \sin \left (d x +c \right )}{6 d \sqrt {\cos \left (d x +c \right ) b}\, \cos \left (d x +c \right )^{\frac {5}{2}}}\) | \(122\) |
parts | \(\frac {A \left (2 \left (\cos ^{2}\left (d x +c \right )\right )+1\right ) \sin \left (d x +c \right )}{3 d \sqrt {\cos \left (d x +c \right ) b}\, \cos \left (d x +c \right )^{\frac {5}{2}}}+\frac {B \left (-\left (\cos ^{2}\left (d x +c \right )\right ) \ln \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )-1\right )+\left (\cos ^{2}\left (d x +c \right )\right ) \ln \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )+1\right )+\sin \left (d x +c \right )\right )}{2 d \sqrt {\cos \left (d x +c \right ) b}\, \cos \left (d x +c \right )^{\frac {3}{2}}}\) | \(128\) |
risch | \(-\frac {i \left (3 B \,{\mathrm e}^{4 i \left (d x +c \right )}-3 B -16 A \cos \left (d x +c \right )-8 i A \sin \left (d x +c \right )\right )}{6 \sqrt {\cos \left (d x +c \right ) b}\, \sqrt {\cos \left (d x +c \right )}\, \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{2} d}+\frac {\left (\sqrt {\cos }\left (d x +c \right )\right ) B \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}{2 \sqrt {\cos \left (d x +c \right ) b}\, d}-\frac {\left (\sqrt {\cos }\left (d x +c \right )\right ) B \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )}{2 \sqrt {\cos \left (d x +c \right ) b}\, d}\) | \(148\) |
[In]
[Out]
none
Time = 0.34 (sec) , antiderivative size = 259, normalized size of antiderivative = 1.79 \[ \int \frac {A+B \cos (c+d x)}{\cos ^{\frac {7}{2}}(c+d x) \sqrt {b \cos (c+d x)}} \, dx=\left [\frac {3 \, B \sqrt {b} \cos \left (d x + c\right )^{4} \log \left (-\frac {b \cos \left (d x + c\right )^{3} - 2 \, \sqrt {b \cos \left (d x + c\right )} \sqrt {b} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 2 \, b \cos \left (d x + c\right )}{\cos \left (d x + c\right )^{3}}\right ) + 2 \, {\left (4 \, A \cos \left (d x + c\right )^{2} + 3 \, B \cos \left (d x + c\right ) + 2 \, A\right )} \sqrt {b \cos \left (d x + c\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{12 \, b d \cos \left (d x + c\right )^{4}}, -\frac {3 \, B \sqrt {-b} \arctan \left (\frac {\sqrt {b \cos \left (d x + c\right )} \sqrt {-b} \sin \left (d x + c\right )}{b \sqrt {\cos \left (d x + c\right )}}\right ) \cos \left (d x + c\right )^{4} - {\left (4 \, A \cos \left (d x + c\right )^{2} + 3 \, B \cos \left (d x + c\right ) + 2 \, A\right )} \sqrt {b \cos \left (d x + c\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{6 \, b d \cos \left (d x + c\right )^{4}}\right ] \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \cos (c+d x)}{\cos ^{\frac {7}{2}}(c+d x) \sqrt {b \cos (c+d x)}} \, dx=\text {Timed out} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 957 vs. \(2 (123) = 246\).
Time = 0.42 (sec) , antiderivative size = 957, normalized size of antiderivative = 6.60 \[ \int \frac {A+B \cos (c+d x)}{\cos ^{\frac {7}{2}}(c+d x) \sqrt {b \cos (c+d x)}} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {A+B \cos (c+d x)}{\cos ^{\frac {7}{2}}(c+d x) \sqrt {b \cos (c+d x)}} \, dx=\int { \frac {B \cos \left (d x + c\right ) + A}{\sqrt {b \cos \left (d x + c\right )} \cos \left (d x + c\right )^{\frac {7}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \cos (c+d x)}{\cos ^{\frac {7}{2}}(c+d x) \sqrt {b \cos (c+d x)}} \, dx=\int \frac {A+B\,\cos \left (c+d\,x\right )}{{\cos \left (c+d\,x\right )}^{7/2}\,\sqrt {b\,\cos \left (c+d\,x\right )}} \,d x \]
[In]
[Out]